#!/bin/env python3
# -*- coding: utf-8 -*- (for python2.x)

import logging
from PyQt5.QtWidgets import QLabel, QScrollArea
from PyQt5.QtGui import QPalette, QColor, QFont
import image_painter

class ImageViewer(QScrollArea):
    DEFAULT_TEXT = 'No image loaded.'

    mouse_left_pressed = False
    image_scale_exact = 1.0

    def __init__(self, parent=None):
        super(ImageViewer, self).__init__(parent)
        self.log = logging.getLogger('root.ImageViewer')

        self.installEventFilter(self)


